package com.example.mychatroom.controller;

import com.example.mychatroom.serviceApi.MessageService;
import com.example.mychatroom.serviceApi.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;


@Controller
public class TestController {

    public UserService userService;

    public MessageService messageService;


    public TestController(UserService userService) {
        this.userService = userService;
    }

    @Autowired
    public TestController(UserService userService, MessageService messageService) {
        this.userService = userService;
        this.messageService = messageService;
    }

    @Override
    public String toString() {
        return "TestController{" +
                "userService=" + userService +
                ", messageService=" + messageService +
                '}';
    }
}
